<div class="row-fluid listcontent">
    <div class="span12">
        <div class="portlet box grey">
            <div class="portlet-title">
                <div class="caption"><i class="icon-cogs"></i>互助列表</div>
                <div class="actions" id="orderaline">
                    <div class="btn-group">
                        <a class="btn blue" href="#" data-toggle="dropdown">
                            <i class="icon-cogs"></i>&nbsp;&nbsp;操作
                            <i class="icon-angle-down"></i>
                        </a>
                        <ul class="dropdown-menu pull-right">
                            <li><a id="info_delete"><i class="icon-trash"></i>删除互助狗狗</a></li>
                        </ul>
                    </div>
                    <div class="btn-group">
                        <a class="btn blue Download" href="javascript:void(0)" data-toggle="dropdown">
                            <i class="icon-cogs"></i>&nbsp;&nbsp;导出互助信息
                        </a>
                    </div>
                </div>
            </div>
            <div class="portlet-body">
                <div class="dataTables_wrapper form-inline">
                    <div class="row-fluid">
                        <div class="span12">
                            <form id="searchform" action="{$action}" method="post">
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <input type="button" class="btn blue searchsubmit" value="互助的状态:  "/>
                                    <select name='search[]' style="width: 80px;margin-right: 10px">
                                        <option value="">全部</option>
                                        <?php foreach ($dog_help_status as $key => $vo) { ?>
                                            <option value="{$key}"
                                                <?php if (isset($search[0]) && ($search[0] == $key)) { ?>
                                                    selected="selected"
                                                <?php } ?> >
                                                {$vo}
                                            </option>
                                        <?php } ?>
                                    </select>
                                </div>

                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <input type="button" class="btn blue searchsubmit" value="省:  "/>
                                    <select name='search[]' id="province" style="width: 100px;margin-right: 10px">
                                        <option value="">全部</option>
                                        <?php foreach ($province as $key => $vo) { ?>
                                            <option value="{$vo['district_id']}"
                                                <?php if (isset($search[1]) && ($search[1] == $vo['district_id'])) { ?>
                                                    selected="selected"
                                                <?php } ?> >
                                                {$vo.district}
                                            </option>
                                        <?php } ?>
                                    </select>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <input type="button" class="btn blue searchsubmit" value="市:  "/>
                                    <select name='search[]' id="city" style="width: 100px;margin-right: 10px">
                                        <option value="">全部</option>
                                        <?php foreach ($city as $key => $vo) { ?>
                                            <option value="{$vo['district_id']}"
                                                <?php if (isset($search[2]) && ($search[2] == $vo['district_id'])) { ?>
                                                    selected="selected"
                                                <?php } ?> >
                                                {$vo.district}
                                            </option>
                                        <?php } ?>
                                    </select>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <input type="button" class="btn blue searchsubmit" value="区:  "/>
                                    <select name='search[]' id="area" style="width: 100px;margin-right: 10px">
                                        <option value="">全部</option>
                                        <?php foreach ($district as $key => $vo) { ?>
                                            <option value="{$vo['district_id']}"
                                                <?php if (isset($search[3]) && ($search[3] == $vo['district_id'])) { ?>
                                                    selected="selected"
                                                <?php } ?> >
                                                {$vo.district}
                                            </option>
                                        <?php } ?>
                                    </select>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <label>
                                        <input type="button" class="btn blue searchsubmit" value="发布开始时间"/>
                                        <input type="text" name="search[]"
                                               aria-controls="sample_2" class="m-wrap" value="{$search[4]?$search[4]:''}" style="height:20px"  onclick="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                                    </label>
                                </div>
                                <div class="dataTables_filter" id="sample_2_filter" style="float: left">
                                    <label>
                                        <input type="button" class="btn blue searchsubmit" value="发布结束时间:"/>
                                        <input type="text" name="search[]" placeholder=""
                                               aria-controls="sample_2" class="m-wrap" value="{$search[5]?$search[5]:''}" style="height:20px"   onclick="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                                    </label>
                                </div>

                                <div class="dataTables_filter" id="sample_2_filter" style="float: left;margin-left:10px">
                                    <label>
                                        <input type="button" class="btn blue search" value="提交"/>
                                    </label>
                                </div>
                            </form>
                        </div>
                    </div>
                    <table id="basicinfo" class="table table-hover table-bordered">
                        <thead>
                        <th style="width:8px;"><input type="checkbox"/></th>
                        <th>ID</th>
                        <th>狗狗的ID</th>
                        <th>点击量</th>
                        <th>发布时间</th>
                        <th>互助截止日期</th>
                        <th>互助类别</th>
                        <th>狗狗状况</th>
                        <th>发布用户</th>
                        <th>手机号码</th>
                        <th>是否认证</th>
                        <th style="width:110px;">操作</th>
                        <!--                        <th style="width:110px;">操作</th>-->
                        </thead>
                        <tbody>
                        {if(count($list)>0)}
                        {volist name='list' id='val'}
                        <tr class="odd gradeX ">
                            <td><input type="checkbox" class="checkboxes" name="id" value="{$val.dog_id}"/></td>
                            <td>{$val.dog_id}</td>
                            <td>{$val.udf_id}</td>
                            <td>{$val.dog_click_num}</td>
                            <td>{$val.dog_release_time?$val.dog_release_time:''}</td>
                            <td>{$val.dog_end_time==''?'':$val.dog_end_time}</td>
                            <td>{$val.dog_help_style}</td>
                            <td>{$val.udf_condition?$udf_condition[$val.udf_condition]:''}</td>
                            <td>{$val.user_username}</td>
                            <td>{$val.user_phone}</td>
                            <td>{$user_attestation[$val.user_attestation]?$user_attestation[$val.user_attestation]:''}</td>
                            <td>
                                <a class="btn mini purple reset" data-id='{$val.dog_id}'><span>详情</span></a>
                            </td>
                        </tr>
                        {/volist}
                        {else/}
                        <tr>
                            <td colspan="16"><span style="margin-left: 50px">暂无数据</span></td>
                        </tr>
                        {/if}
                        </tbody>
                    </table>
                    <input type="hidden" name="page" value="{$page?$page:''}">
                </div>
            </div>
        </div>
        {if(!empty($list))}
        {$list->render()}
        {/if}
    </div>
</div>